<?php

namespace app\admin\validate;

use think\Validate;

class Goods extends Validate
{

    protected $rule = [
        'de_name'  =>  'require',
        'pid' =>  'require',
        'shop_sort' =>  'require|number',
        'now_price' =>  'require|number',
        'stock' =>  'require|number',
        'sell_out' =>  'require|number',
        'shop_size' =>  'require',
        'shop_thumb' =>  'require',
        'pics' =>  'require',
        'describe' =>  'require',

    ];
    protected $message=[
        'de_name.require'=>'请输入商品名称',
        'pid.require'=>'请输入商品栏目',
        'shop_sort.require'=>'请输入商品排序',
        'shop_sort.number'=>'商品排序请输入数字',
        'now_price.require'=>'请输入商品价格',
        'now_price.number'=>'商品价格请输入数字',
        'stock.require'=>'请输入商品库存',
        'stock.number'=>'商品库存请输入数字',
        'sell_out.require'=>'请输入已售出',
        'sell_out.number'=>'已售出为数字',
        'shop_thumb.require'=>'请输入商品的列表图',
        'pics.require'=>'请上传商品图册',
        'describe.require'=>'请输入商品描述',
    ];






}